<?php
include_once './predis/autoload.php';
$conf=[
	'host'=>'localhost',
	'port'=>'6379'
];

$redis=new Predis\Client($conf);

$redis->select(2);

$items=[
	'a','b'
];

$redis->lpush('list',$items);

//print_r($redis->lrange('list',0,-1));

$redis->sadd('set',$items);

$itemScore=[
	'Tom'=>'100',
	'Jack'=>'89'
];

$redis->zadd('zset',$itemScore);

//print_r($redis->zrange('zset',0,-1));

print_r($redis->smembers('set'));
?>































